package utils;

import java.util.ArrayList;
import java.util.List;

public class page {

    private int totalCount;
    private int totalpage;
    private int totalsize;
    private int currentpage;

    //List<T>list=new ArrayList<T>(0);


    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalpage() {
        return totalpage;
    }

    public void setTotalpage() {
        this.totalpage = totalCount%totalsize==0?totalCount/totalsize:totalCount/totalsize+1;
    }

    public int getTotalsize() {
        return totalsize;
    }

    public void setTotalsize(int totalsize) {
        this.totalsize = totalsize;
    }

    public int getCurrentpage() {
        return currentpage;
    }

    public void setCurrentpage(int currentpage) {
        this.currentpage = currentpage;
    }
}
